/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.yunhoo.base.db.dao;

import com.yunhoo.base.model.Function;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;

/**
 *
 * @author Administrator
 */
public interface FunctionDao {

    public void insert(Function param) throws SQLException;

    public void update(Function param) throws SQLException;

    public void updateIsEnd(Function param) throws SQLException;

    public void delete(Function param) throws SQLException;

    public void deleteById(Function param) throws SQLException;

    public Function queryById(Function param) throws SQLException;

    public List<Function> queryAll(Function param) throws SQLException;

    public List<Function> directSubNodes(Function param) throws SQLException;

    public Function nameRepeatForInsert(Function param) throws SQLException;

    public Function nameRepeatForUpdate(Function param) throws SQLException;

    public List<Function> queryListByOrgAndYear(Function param) throws SQLException;
}
